<template>
  <div class="zj-title">
    <p class="left-title">{{ leftTitle }}</p>
    <slot name="rightTitle">
      <p class="right-title" v-html="rightTitle"></p>
    </slot>
  </div>
</template>

<script setup lang="ts">
const {leftTitle, rightTitle} = defineProps({
  leftTitle: {
    type: String,
    default: "会员特享权益"
  },
  rightTitle: {
    type: String,
    default: "更多 &gt;"
  }
})
</script>

<style scoped lang="less">
.zj-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 30px;
  margin-bottom: 10px;

  .left-title {
    font-weight: 600;
    font-size: 16px;
  }

  .right-title {
    font-size: 14px;
    color: #999;
  }
}
</style>
